<?php /* Smarty version 2.6.14, created on 2014-11-10 13:48:01
         compiled from menu.add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'menu.add.html', 36, false),array('function', 'html_checkboxes', 'menu.add.html', 42, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<input type="hidden" name="menu_id" value="<?php echo $this->_tpl_vars['menu']['menu_id']; ?>
">
<table width="100%" border="0"  class="adminform">
  <tr>
    <th align="left">父菜单</th>
  </tr>
  <tr>
    <td align="left"><label>
      <select name="menu[top_id]">
        <option value="0">顶级菜单</option>
            <?php $_from = $this->_tpl_vars['menus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['row']):
?>
            <option value="<?php echo $this->_tpl_vars['row']['menu_id']; ?>
" <?php if ($this->_tpl_vars['row']['menu_id'] == $this->_tpl_vars['menu']['top_id']): ?> selected <?php endif; ?>><?php echo $this->_tpl_vars['row']['menu_name']; ?>
</option>
         <?php endforeach; endif; unset($_from); ?>
      </select>
      </label></td>
  </tr>
  <tr>
    <th align="left">名称</th>
  </tr>
  <tr>
      
      <td><label>
        <input type="text" class="text" name="menu[menu_name]" id="form[menu_name]"  value="<?php echo $this->_tpl_vars['menu']['menu_name']; ?>
" dataType="Require" msg='名称必填'/>
      </label></td>
    </tr>
     <tr><th align="left">URL</th></tr>
    <tr>
     
      <td><input type="text" class="text" name="menu[menu_url]" id="form[menu_url]" value="<?php echo $this->_tpl_vars['menu']['menu_url']; ?>
" /></td>
    </tr>
    <tr><th align="left">排序</th>
    </tr>
    <tr>
     
      <td align="left"><input name="menu[menu_order]" type="text" class="text"id="form[menu_order]" size="6"  value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['menu']['menu_order'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
"/></td>
    </tr>
    <tr><th align="left">角色</th></tr>
    <tr>
     
      <td align="left">
        <?php echo smarty_function_html_checkboxes(array('name' => 'groups','options' => $this->_tpl_vars['group'],'selected' => $this->_tpl_vars['menu_roles'],'separator' => "&nbsp;"), $this);?>

      </td>
    </tr>
    <tr>
      <td colspan="2" align="left"><label>
        <input type="submit"  id="button" value="提交" class="button"/>
      </label></td>
  </tr>
</table>
</form>